package com.authentication.center.model;

import java.util.Date;
import javax.persistence.*;
import lombok.Data;

/**
 * @author garvin
 * @date 2020-05-21
 */
@Data
@Table(name = "t_app_resource")
public class AppResource {
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 应用程序ID
     */
    @Column(name = "app_id")
    private Long appId;

    /**
     * 资源名称
     */
    @Column(name = "resource_name")
    private String resourceName;

    /**
     * 资源编码
     */
    @Column(name = "resource_code")
    private String resourceCode;

    /**
     * 资源描述
     */
    @Column(name = "resource_describe")
    private String resourceDescribe;

    /**
     * 资源
     */
    private String resource;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 创建时间
     */
    @Column(name = "created_time")
    private Date createdTime;

    /**
     * 更新人
     */
    @Column(name = "updated_by")
    private String updatedBy;

    /**
     * 更新时间
     */
    @Column(name = "updated_time")
    private Date updatedTime;

    public static final String ID = "id";

    public static final String DB_ID = "id";

    public static final String APP_ID = "appId";

    public static final String DB_APP_ID = "app_id";

    public static final String RESOURCE_NAME = "resourceName";

    public static final String DB_RESOURCE_NAME = "resource_name";

    public static final String RESOURCE_CODE = "resourceCode";

    public static final String DB_RESOURCE_CODE = "resource_code";

    public static final String RESOURCE_DESCRIBE = "resourceDescribe";

    public static final String DB_RESOURCE_DESCRIBE = "resource_describe";

    public static final String RESOURCE = "resource";

    public static final String DB_RESOURCE = "resource";

    public static final String CREATED_BY = "createdBy";

    public static final String DB_CREATED_BY = "created_by";

    public static final String CREATED_TIME = "createdTime";

    public static final String DB_CREATED_TIME = "created_time";

    public static final String UPDATED_BY = "updatedBy";

    public static final String DB_UPDATED_BY = "updated_by";

    public static final String UPDATED_TIME = "updatedTime";

    public static final String DB_UPDATED_TIME = "updated_time";
}